var express = require('express');
const UserController = require('../Controller/UserController');

var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

//添加
router.post("/user/add",UserController.addUser)

router.post("/user/update/:id",UserController.updateUser)

router.post("/user/delete/:id",UserController.deleteUser)

router.get("/user/list",UserController.getUser)

module.exports = router;
